package com.aldobucchi.graph.restrictionTree
{
	import com.aldobucchi.tree.TreeNode;
	
	
	/**
	 * 
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */	
	public class RTVarNode extends RTNode
	{
	
		public function RTVarNode( )
		{
			super( );
		}
		
		
		
		override protected function shallowClone( ):TreeNode
		{
			return new RTVarNode( );	
		}
		
		
		
		/**
		 * 
		 * 
		 * @param toNode
		 * @return 
		 * 
		 */		
		public function getIntermediateArcNodes( toNode:RTVarNode ):Array
		{
		
			var all:Array = getIntermediateNodes( toNode );
			if ( all == null )
				return null;
				
			var result:Array = [ ];
			
			for each ( var node:RTNode in all )
				if ( node is RTArcNode )
					result.push( node );

			return result;				
		
		}
		
		
		
		
	}
	
}